source 'https://github.com/CocoaPods/Specs.git'

# 说明平台是ios，版本是9.0
platform :ios, '13.0'

# 忽略引入库的所有警告（强迫症者的福音啊）
inhibit_all_warnings!

target 'XiRan-iOS' do
  
   pod 'Masonry'
   pod 'MJRefresh'
   pod 'MJExtension'
   pod 'MBProgressHUD'
   pod 'YBImageBrowser'
   pod 'IQKeyboardManager'
   pod 'pop', '~> 1.0'
   pod 'SDWebImage', '~> 5.0'
   pod 'AFNetworking', '~> 3.0'
   pod 'WechatOpenSDK'
  
   pod 'WMPageController', '~> 2.4.0'
   pod 'SDCycleScrollView','>= 1.80'
   
   pod 'FBSDKLoginKit'
   pod 'FacebookSDK'
   pod 'FacebookSDK/LoginKit'
   pod 'FBSDKCoreKit'
   pod 'FBSDKShareKit'
   pod 'FacebookSDK/PlacesKit'
   
   pod 'FBSDKMessengerShareKit'
   
   # remove UIKit(UIWebView) rejected by AppStore
   pre_install do |installer|
       puts 'pre_install begin....'
       dir_af = File.join(installer.sandbox.pod_dir('AFNetworking'), 'UIKit+AFNetworking')
       Dir.foreach(dir_af) {|x|
         real_path = File.join(dir_af, x)
         if (!File.directory?(real_path) && File.exists?(real_path))
           if((x.start_with?('UIWebView') || x == 'UIKit+AFNetworking.h'))
             File.delete(real_path)
             puts 'delete:'+ x
           end
         end
       }
       puts 'end pre_install.'
       
       end
   
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
    end
  end
end
